package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysAnimeMapper;
import com.ruoyi.system.domain.SysAnime;
import com.ruoyi.system.service.ISysAnimeService;

/**
 * 动漫Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-02-28
 */
@Service
public class SysAnimeServiceImpl implements ISysAnimeService 
{
    @Autowired
    private SysAnimeMapper sysAnimeMapper;

    /**
     * 查询动漫
     * 
     * @param id 动漫主键
     * @return 动漫
     */
    @Override
    public SysAnime selectSysAnimeById(Long id)
    {
        return sysAnimeMapper.selectSysAnimeById(id);
    }

    /**
     * 查询动漫列表
     * 
     * @param sysAnime 动漫
     * @return 动漫
     */
    @Override
    public List<SysAnime> selectSysAnimeList(SysAnime sysAnime)
    {
        return sysAnimeMapper.selectSysAnimeList(sysAnime);
    }

    /**
     * 新增动漫
     * 
     * @param sysAnime 动漫
     * @return 结果
     */
    @Override
    public int insertSysAnime(SysAnime sysAnime)
    {
        return sysAnimeMapper.insertSysAnime(sysAnime);
    }

    /**
     * 修改动漫
     * 
     * @param sysAnime 动漫
     * @return 结果
     */
    @Override
    public int updateSysAnime(SysAnime sysAnime)
    {
        return sysAnimeMapper.updateSysAnime(sysAnime);
    }

    /**
     * 批量删除动漫
     * 
     * @param ids 需要删除的动漫主键
     * @return 结果
     */
    @Override
    public int deleteSysAnimeByIds(Long[] ids)
    {
        return sysAnimeMapper.deleteSysAnimeByIds(ids);
    }

    /**
     * 删除动漫信息
     * 
     * @param id 动漫主键
     * @return 结果
     */
    @Override
    public int deleteSysAnimeById(Long id)
    {
        return sysAnimeMapper.deleteSysAnimeById(id);
    }
}
